package org.adorsys.aderp.aderplogin.service;

import java.util.List;

import org.adorsys.aderp.aderplogin.domain.UserRole;


public class UserRoleServiceImpl implements UserRoleService {
	
	@Override
	public UserRole findByRoleKey(String roleKey){
		List<UserRole> found = userRoleRepository.findByRoleKey(roleKey);
		if(found.isEmpty()) return null;
		return found.iterator().next();
	}
}
